#!/bin/sh

docker run --name keepalived-haproxy-2 \
	-v `pwd`/etc/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg \
	-v `pwd`/etc/health.sh:/etc/keepalived/health.sh \
	-v `pwd`/etc/notify.sh:/etc/keepalived/notify.sh \
	-v `pwd`/etc/keepalived.conf:/etc/keepalived/keepalived.conf \
	--network custom-network --ip 192.168.2.102 \
	-p 3305:3306 \
	--cap-add=NET_ADMIN \
	-d \
	--rm \
	haproxy-keepalived-run $@
# 
#--privileged \
    